package com.ruoyi.project.ins.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class InsSendMessage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    private String sendUsername;

    private String sendUserid;

    private String receiveUsername;

    private String receiveUserid;

    private String messageType;

    private String shareUserid;

    private String messageContent;

    private String status;

    private Integer failTimes;

    private String sendType;

    private String createBy;

    private Long batchId;

    private String proxyServer;

    private String proxyPort;

    private String proxyCustomer;

    private String proxyPassword;

    private String countryCode;

    private String rur;

    private String mid;

    private String claim;

    private String androidId;

    private String auth;

    private String igDid;

    public int getFailTimesOrDefault() {
        if (failTimes == null) {
            return 0;
        }
        return failTimes;
    }
}
